//
//  ServiceContentViewController.m
//  Growth
//
//  Created by 洪波 陈 on 6/16/12.
//  Copyright (c) 2012 MEETStudio. All rights reserved.
//

#import "ServiceContentViewController.h"

@interface ServiceContentViewController ()

@end

@implementation ServiceContentViewController

- (void)dealloc
{
    
    
    [super dealloc];
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    self.navigationItem.title = @"服务条款";
    
    UIWebView *webView = [[UIWebView alloc] init];
    webView.frame = CGRectMake(0, 0, 320 , 416);       
    [webView loadRequest:
	 [NSURLRequest requestWithURL:
	  [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"service_content" ofType:@"htm"]]]];
    [self.view addSubview:webView];
    
    [webView setBackgroundColor:[UIColor clearColor]];
    [webView release];
    // Do any additional setup after loading the view from its nib.

}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}


@end
